package com.bawei.login.api

import com.bawei.login.entity.UserEntity
import com.bawei.network.BaseResponse
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * Author: Jason Zhang
 * Date: 2025/2/13
 * Desc:
 */
interface AccountServerApi {

    @POST("/user/login")
    suspend fun userLogin(@Query("username") userName: String, @Query("password") password: String): BaseResponse<UserEntity>

    @POST("/user/register")
    suspend fun userRegister(@Query("username") userName: String, @Query("password") password: String): BaseResponse<UserEntity>

}